define(['app'],function(app){return {module: function($scope, $http, eventBusService, httpService, params) {
	
//	$scope.defaultModeul = app.include('modules/content/datacenter');
//	$scope.$apply(); //此处必须$apply()，否则defaultModeul不会生效
	var IsPC = function() {
		var userAgentInfo = navigator.userAgent;
		var Agents = ["Android", "iPhone",
			"SymbianOS", "Windows Phone",
			"iPad", "iPod"];
		var flag = true;
		for (var v = 0; v < Agents.length; v++) {
			if (userAgentInfo.indexOf(Agents[v]) > 0) {
				flag = false;
				break;
			}
		}
		return flag;
	}

	var initHtml = function() {
		httpService.post(app.urls.getUserInfo, {}, function(data) {
			if("0000" === data.code){
				app.userInfo = data.data;
			}
		});
		if(!IsPC()) {
			$scope.defaultModeul = app.include('modules/mobile/district/analyse');
		}
		$scope.$apply(); //此处必须$apply()，否则defaultModeul不会生效
	}
	initHtml();

	//接收模块变更
	eventBusService.subscribe('modules.content.load', function(event,data) {
		$scope.defaultModeul = app.include(data.url);
	});

}}});